package visitorPattern

class ConcreteElementTwo : Element {
    //接收操作
    override fun accept(visitor: Visitor) {
        visitor.visit(this)
    }

    //业务逻辑
    fun operation() {
        PrintUtil.print("访问元素2")
    }
}